import {projectStatusCollection,contractStatusCollection,realNameStatusCollection} from '@/mixin/data';

//添加前后缀
export function prefix(val,pf = '',ef = ''){
	return pf+val+ef;
}

//项目状态转换
export function projectStatus(statusCode){
    for(let len =projectStatusCollection.length - 1;len >= 0;len--){
        let item = projectStatusCollection[len];
        if(item.value == statusCode){
            return item.label;
        }
    }
}

//合同状态转换
export function contractStatus(statusCode){
    for(let len = contractStatusCollection.length - 1;len >= 0;len--){
        let item = contractStatusCollection[len];
        if(item.value == statusCode){
            return item.label;
        }
    }
}

//实名状态转换
export function realNameStatus(statusCode){
    for(let len = realNameStatusCollection.length - 1;len >= 0;len--){
        let item = realNameStatusCollection[len];
        if(item.value == statusCode){
            return item.label;
        }
    }
}

